<?php $this->load->view('common/header.php');?>
<script src="/static/js/lightbox/js/lightbox.js" type="text/javascript"></script>
<link href="/static/js/lightbox/css/lightbox.css" rel="stylesheet" type="text/css" />


<div class="dd_position">
  您当前所在的位置：<a href="/"> 壹投资</a> > 合作金融机构 - 公司详情
</div>
<!--dd_position end-->

<div class="dd_invest_detail" style="height:325px;">
  <h2><?php echo $guarantee['name'];?></h2>
  
  
  <div class="dd_qyzl">
   <div class="spec-button" id="spec-left" style="cursor: default;"></div>
   		<div id="spec-left" class="spec-button" style="cursor: default;"><img src="/static/images/left_g.gif" /></div>
   		 <div  id="spec-list" style="width: 600px; margin-left: 2px; margin-right: 2px;" >
   		<div style="height:250px;overflow: hidden;position: relative;z-index: 1;">
   			 <ul  class="list-h" >
		      	<?php foreach ($attlist as $v){?>
		      		<li><a rel="lightbox[roadtrip]" href="<?php echo $v['litpic'];?>"><img src="/<?php echo $v['litpic'];?>" /></a><p><?php echo utf8substr($v['name'],0,6);?></p></li>
		      	<?php }?>
		    </ul>
   		</div>
   		</div>
	      <div id="spec-right" class="spec-button"><img src="/static/images/scroll_right.gif" /></div>
   </div>
    	
   </div>
<div class="dd_invest_detail_tab">
 <div class="idt_content" id="div1">
   <h4>基本信息</h4>
   <table width="880"  cellspacing="0" cellpadding="0" border="0" style="margin:0 auto;word-break:break-all;text-align:left;">
  <tr>
    <td width="100">注册资金：</td>
    <td width="340"><?php echo $guarantee['account'];?>元</td>
    <td width="100">公司成立日期</td>
    <td width="340"><?php echo date('Y-m-d',$guarantee['establishment_time']);?></td>
  </tr>
  <tr>
    <td>开始合作时间：</td>
    <td><?php echo date('Y-m-d',$guarantee['collaboration_time']);?></td>
    <td>联系电话：</td>
    <td><?php echo $guarantee['contact'];?></td>
  </tr>
  <tr>
    <td>公司网址：</td>
    <td><?php echo $guarantee['web'];?></td>
    <td>公司地址：</td>
    <td>    <?php echo $guarantee['address'];?>
    </td>
  </tr>  
 
   </table>
   
    <h4>公司简介</h4>
   <p style="display:block; width:880px; margin:10px auto;word-break:break-all;line-height:36px;">
   		<?php echo $guarantee['introduction'];?>
   </p>

 </div>
 
</div>

<script type="text/javascript">
var lilenth = 0;
var leftpos = 0;
var leftcount = 0;


$(function () {
	lilenth = $(".list-h li").length;
    $(".list-h").css("width", lilenth * 200);
    $("#spec-left").css("cursor", "default");
    $("#spec-list").css("width", 600).css("margin-left", 2).css("margin-right", 2);

    //相关资料图片

    if (lilenth > 4) {

        //图片右侧

        $("#spec-right").click(function () {
            if (leftcount >= 0) {

                $("#spec-left").css("cursor", "pointer");

            }

            if (lilenth - leftcount < 5) {

                $("#spec-right").css("cursor", "default");

            }

            else {

                leftpos = leftpos - 150;

                leftcount = leftcount + 1;
                $(".list-h").animate({ left: leftpos }, "slow");

                if (lilenth - leftcount < 5) {

                    $("#spec-right").css("cursor", "default");

                }

            }



        });

        $("#spec-left").click(function () {

            if (lilenth - leftcount > 4) {

                $("#spec-right").css("cursor", "pointer");

            }



            if (leftcount < 1) {

                $("#spec-left").css("cursor", "default");

            }

            else {

                leftpos = leftpos + 150;

                leftcount = leftcount - 1;

                $(".list-h").animate({ left: leftpos }, "slow");

                if (leftcount < 1) {

                    $("#spec-left").css("cursor", "default");

                }

            }



        })

    }

    else {

        $("#spec-right").css("cursor", "default");

    }
	
});
</script>
<?php $this->load->view('common/footer.php');?>